Re-running data
To re-run data in TIM Enterprise, follow the steps below:
- Take a copy of the data you want to re-run back in the system, stored by default in the backup folder of the main installation program.
 
{Program Files}\Tri-Line\TIM Enterprise\backup
Log in to TIM Enterprise as a root user and click on the SQL tab.
To check the datasource for the PBX object you want to delete calls for, enter the following query:
SELECT name, fullkey from dir where type = 'pbx';

- To delete calls for a specific PBX object and a specific time period, enter the following query:
 
DELETE from calls 
WHERE datasource = '\8\9\'
AND 
datetime between '2023-01-01 00:00:00' AND '2023-02-01 00:00:00';
info
The datasource and datetime values must be modified accordingly, in order to match your requirements for the time period and the PBX object you want to delete calls for.
- The query should return a X rows returned (X ms) message, confirming the selected calls have been deleted.
 

- To re-spool the data back in the system, copy the previously-saved backup files and paste them into the following location:
 
{Program Files}\Tri-Line\TIM Enterprise\spool
- Whilst the system is processing the data, you can click on the Call view screen to monitor the calls that are being logged.
 
info
The time to re-spool the data will vary, depending on the amount and size of the files your system is processing.